<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <title>家族树管理</title>
    <script>
        $(function () {
            $('.popover-hide').popover('hide');
        });
    </script>
    <script>
        /*发送请求，获取家族树数据*/
        $(document).ready(function () {
            $.ajax({
                type: "POST",
                url: "${ctx}/familytree/treeMessage",
                success: function (data) {
                    var obj=eval("("+data+")");
//                    alert("-----success------");
                    $("#treeSpan").html("---------------"+obj);
                },
                error: function (data) {
                    alert("---------错误------");
                }
            })
        });
    </script>

</head>

<body>
...............................这里是家族树<br/>
<span id="treeSpan"/>
<hr/>
<a href="${ctx}/familytree/toAddPerson?world=familyTree">添加成员</a>
</body>
</html>